package com.wkbb.common.enums;

/**
 * 组织类型枚举
 *
 * @author Lilin
 */
public enum SchoolTypeEnum {

    /**
     * 幼儿园
     */
    KINDERGARTEN(5, "幼儿园"),
    /**
     * 小学
     */
    PRIMARY_SCHOOL(6, "小学"),
    /**
     * 中职
     */
    SECONDARY_SCHOOL(7, "中职"),
    /**
     * 初中
     */
    MIDDLE_SCHOOL(8, "初中"),
    /**
     * 高中
     */
    HIGH_SCHOOL(9, "高中"),
    /**
     * 高职
     */
    VOCATIONAL_SCHOOL(10, "高职"),
    /**
     * 本科
     */
    UNIVERSITY(11, "本科"),
    /**
     * 培训学校
     */
    TRAINING_SCHOOL(12, "培训学校"),

    /**
     * 培训学校
     */
    SIX_CONSISTENCY_SCHOOL(13, "完中"),

    /**
     * 培训学校
     */
    NINE_CONSISTENCY_SCHOOL(14, "九年一贯"),

    /**
     * 培训学校
     */
    TWELVE_CONSISTENCY_SCHOOL(15, "十二年一贯");

    private SchoolTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public static String getDesc(Integer value) {
        for (SchoolTypeEnum organizationType : SchoolTypeEnum.values()) {
            if (organizationType.getValue().intValue() == value) {
                return organizationType.getDesc();
            }
        }
        return null;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

}
